#include <bits/stdc++.h>
using namespace std;
double l,d,v,g,r;
double t;
int main(){
scanf("%lf%lf%lf%lf%lf",&l,&d,&v,&g,&r);
t=d/v;
while(t>g+r)
{
t=t-g-r;
}
if(t<g){
printf("%.8lf\n",l/v);
}else{
printf("%.8lf\n",l/v+(g+r-t));
}
return 0;
}
13 Reasons Why | Friend's Relationship |
Health of a person | Divisibility |
A. Movement | Numbers in a matrix |
Sequences | Split houses |
Divisible | Three primes |
Coprimes | Cost of balloons |
One String No Trouble | Help Jarvis! |
Lift queries | Goki and his breakup |
Ali and Helping innocent people | Book of Potion making |
Duration | Birthday Party |
e-maze-in | Bricks Game |
Char Sum | Two Strings |
Anagrams | Prime Number |
Lexical Sorting Reloaded | 1514A - Perfectly Imperfect Array |
580A- Kefa and First Steps | 1472B- Fair Division |